package com.im.client;

import com.pojo.UserInfo;
import com.utility.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author HeWei123
 */
@FeignClient(value = "system-core",url = "http://127.0.0.1:28881")
public interface AdminApi {


    /**
     * 根据token 获取用户信息接口
     * @return
     */
    @GetMapping("/common/userAnalysis/userInfo")
    Result<UserInfo> userInfo(@RequestParam String token);


}
